package cn.edu.nju.freshdelivery.model;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Comment entity. @author MyEclipse Persistence Tools
 */

public class Comment implements java.io.Serializable {

	// Fields

	private Integer id;
	private Dish dish;
	private Buyer buyer;
	private String content;
	private Integer star;
	private Timestamp time;
	private Set replies = new HashSet(0);

	// Constructors

	/** default constructor */
	public Comment() {
	}

	/** minimal constructor */
	public Comment(Dish dish, Buyer buyer, String content, Integer star,
			Timestamp time) {
		this.dish = dish;
		this.buyer = buyer;
		this.content = content;
		this.star = star;
		this.time = time;
	}

	/** full constructor */
	public Comment(Dish dish, Buyer buyer, String content, Integer star,
			Timestamp time, Set replies) {
		this.dish = dish;
		this.buyer = buyer;
		this.content = content;
		this.star = star;
		this.time = time;
		this.replies = replies;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Dish getDish() {
		return this.dish;
	}

	public void setDish(Dish dish) {
		this.dish = dish;
	}

	public Buyer getBuyer() {
		return this.buyer;
	}

	public void setBuyer(Buyer buyer) {
		this.buyer = buyer;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getStar() {
		return this.star;
	}

	public void setStar(Integer star) {
		this.star = star;
	}

	public Timestamp getTime() {
		return this.time;
	}

	public void setTime(Timestamp time) {
		this.time = time;
	}

	public Set getReplies() {
		return this.replies;
	}

	public void setReplies(Set replies) {
		this.replies = replies;
	}

}